package com.work.entity.main;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springblade.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 理货船舶预报
 *
 * @author ：dujianyu
 * @since ：Created in 2024/3/12 14:12
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("t_ship_forecast")
@ApiModel(value = "TShipForecast对象", description = "理货船舶预报")
public class TShipForecast extends TenantEntity {

    /** 货运ship_forecast主键 */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "货运ship_forecast主键",notes = "")
    private Long transportShipId ;
    /** 船名 */
    @ApiModelProperty(name = "船名",notes = "")
    private String shipNameZh ;
    /** 船舶状态 */
    @ApiModelProperty(name = "船舶状态",notes = "")
    private String forecastStatus ;
    /** 计划泊位 */
    @ApiModelProperty(name = "计划泊位",notes = "")
    private String planBerth ;
    /** 计划泊位名称 */
    @ApiModelProperty(name = "计划泊位名称",notes = "")
    private String planBerthName ;
    /** 实际泊位 */
    @ApiModelProperty(name = "实际泊位",notes = "")
    private String lastBerth ;
    /** 实际泊位名称 */
    @ApiModelProperty(name = "实际泊位名称",notes = "")
    private String lastBerthName ;
    /** 进口航次 */
    @ApiModelProperty(name = "进口航次",notes = "")
    private String impVoyage ;
    /** 进口货名 */
    @ApiModelProperty(name = "进口货名",notes = "")
    private String impCargoType ;
    @ApiModelProperty(name = "进口货名",notes = "")
    private String impCargoTypeName ;
    /** 出口航次 */
    @ApiModelProperty(name = "出口航次",notes = "")
    private String expVoyage ;
    /** 出口货名 */
    @ApiModelProperty(name = "出口货名",notes = "")
    private String expCargoType ;
    @ApiModelProperty(name = "出口货名",notes = "")
    private String expCargoTypeName ;
    /** 靠泊时间 */
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
    @ApiModelProperty(name = "靠泊时间",notes = "")
    private LocalDateTime rtb ;
    /** 离泊时间 */
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
    @ApiModelProperty(name = "离泊时间",notes = "")
    private LocalDateTime rtd ;

}
